package com.gwcm.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.gwcm.common.BaseEntity;
import lombok.Data;

/**
 * @TableName product
 */
@TableName(value ="product")
@Data
public class Product extends BaseEntity implements Serializable {

    private Long id;
    /**
     * 产品编码
     */
    private String productSn;
    /**
     * 分类id
     */
    private Long categoryId;
    private Category category;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品描述
     */
    private String description;
    /**
     * 商品价格
     */
    private BigDecimal price;
    /**
     * 商品折扣价
     */
    private BigDecimal priceDiscount;
    /**
     * 商品成本
     */
    private BigDecimal cost;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 库存警戒线
     */
    private Integer stockCordon;
    /**
     * 颜色
     */
    private String color;
    /**
     * 尺码
     */
    private String size;
    /**
     * 商品图片
     */
    private String imgUrl;

    private static final long serialVersionUID = 1L;
}